Change some vars and functions to be static.
authorFlorian La Roche <[email protected]>
Sun, 27 Jan 2019 13:30:12 +0000 (14:30 +0100)
committerFlorian La Roche <[email protected]>
Sun, 27 Jan 2019 13:30:12 +0000 (14:30 +0100)
Signed-off-by: Florian La Roche <[email protected]>
drivers/partition/partition.c
drivers/synopsys/ufs/dw_ufs.c
drivers/ufs/ufs.c

index 630c1d8082524accba972476c4b406c12c7c96a3..6fa3df0f268cdf1e2919df812086e1ce3c866a4a 100644 (file)
@@ -16,7 +16,7 @@
 #include <plat/common/platform.h>
 
 static uint8_t mbr_sector[PARTITION_BLOCK_SIZE];
-partition_entry_list_t list;
+static partition_entry_list_t list;
 
 #if LOG_LEVEL >= LOG_LEVEL_VERBOSE
 static void dump_entries(int num)
index c7c8fc22d2491d6120bff5e4a496e169a1cceeac..6bed981db0b6f647dc1c1b12d0636343886c428e 100644 (file)
@@ -183,7 +183,7 @@ static int dwufs_phy_set_pwr_mode(ufs_params_t *params)
        return 0;
 }
 
-const ufs_ops_t dw_ufs_ops = {
+static const ufs_ops_t dw_ufs_ops = {
        .phy_init               = dwufs_phy_init,
        .phy_set_pwr_mode       = dwufs_phy_set_pwr_mode,
 };
index 2351c9b04e90dbe407e03ab933659b4d22051e7c..b2c1046123f103951eb1d2e92b24053e38907db1 100644 (file)
@@ -591,7 +591,7 @@ void ufs_write_desc(int idn, int index, uintptr_t buf, size_t size)
        ufs_query(QUERY_WRITE_DESC, idn, index, 0, buf, size);
 }
 
-void ufs_read_capacity(int lun, unsigned int *num, unsigned int *size)
+static void ufs_read_capacity(int lun, unsigned int *num, unsigned int *size)
 {
        utp_utrd_t utrd;
        resp_upiu_t *resp;